package com.geekcattle.mapper.goods;

import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @program: geek-framework
 * @description:
 * @author: LQ
 * @create: 2019-04-21 14:33
 */
@Repository
public interface GoodsOrderMapper {
    /**
     * 添加订单
     * @param map
     * @return
     */
    int addOrder(Map map);

    /**
     * 修改订单
     * @param map
     * @return
     */
    int updateOrder(Map map);

    /**
     * 查询用户的订单
     * @param map
     * @return
     */
    List<Map> selectOrder(Map map);

    /**
     * 查询订单详情
     * @param map
     * @return
     */
    List<Map> selectOrderDetail(Map map);

    /**
     * 判断是不是用户登录
     * @param uid
     * @return
     */
    String isUser(String uid);

    /**
     * 条件统计订单总数
     * @param map
     * @return
     */
    int getOrderCount(Map map);
}
